package com.mengniu.commerce.sync.mapper;

import com.mengniu.commerce.sync.model.RefundOrderModel;
import com.mengniu.common.mybatis.core.mapper.BaseMapperPlus;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;


/**
 * 售后订单Mapper接口
 *
 * @author lzx
 * @date 2023-11-30
 */
@Mapper
public interface RefundOrderMapper extends BaseMapperPlus<RefundOrderMapper,RefundOrderModel,RefundOrderModel>
{
    /**
     * 查询售后订单
     *
     * @param id 售后订单主键
     * @return 售后订单
     */
    public RefundOrderModel selectRefundOrderModelById(Long id);

    /**
     * 查询售后订单列表
     *
     * @param refundOrderModel 售后订单
     * @return 售后订单集合
     */
    public List<RefundOrderModel> selectRefundOrderModelList(RefundOrderModel refundOrderModel);

    /**
     * 新增售后订单
     *
     * @param refundOrderModel 售后订单
     * @return 结果
     */
    public int insertRefundOrderModel(RefundOrderModel refundOrderModel);

    /**
     * 修改售后订单
     *
     * @param refundOrderModel 售后订单
     * @return 结果
     */
    public int updateRefundOrderModel(RefundOrderModel refundOrderModel);

    /**
     * 删除售后订单
     *
     * @param id 售后订单主键
     * @return 结果
     */
    public int deleteRefundOrderModelById(Long id);

    /**
     * 批量删除售后订单
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteRefundOrderModelByIds(String[] ids);

    RefundOrderModel selectBySalesOrderNo(String salesOrderNo);
}
